home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1998 July / EnigmA AMIGA RUN 29 (1998)(G.R. Edizioni)(IT)[!][issue 1998-07 & 08].iso / earcd / ppaint64 / tutorial.txt < prev    next >
Text File  |  1998-06-17  |  63KB  |  1,207 lines

  1.  
  2.  Personal Paint Tutorial
  3.  
  4.  
  5.  Hard Disk Installation
  6.  
  7.  To install Personal Paint 6.4 to your hard disk, just copy the "PPaint"
  8.  drawer to the desired location. Personal Paint does not require any
  9.  particular Assign instructions to run, although assigning the logical
  10.  name "PPaint" to the program directory is useful to tell the system where
  11.  to look for Personal Paint when an artwork file is double-clicked on. If,
  12.  for example, the "PPaint" drawer is installed in the partition named
  13.  "Work", you could add the following command to the "S:user-startup"
  14.  file:
  15.  
  16.     Assign PPaint: Work:PPaint
  17.  
  18.  
  19.  Exploring Personal Paint
  20.  
  21.  It is very easy to explore Personal Paint by choosing from the variety of
  22.  menus and gadgets. Once you start working with the program, remember to
  23.  frequently save your work during each session, and make periodical backup
  24.  copies of the entire disks. This will protect your work from mistakes,
  25.  power failures, software errors and disk read/write problems.
  26.  
  27.  The gadgets on the tool bar which is displayed on the left of the screen
  28.  may respond differently depending on the pointer's position over the
  29.  gadget (upper or lower half), the mouse button which is used (left or
  30.  right), and the number of mouse clicks (for cycle gadgets). For example,
  31.  the tool to the right of the "a" text editing symbol activates the image
  32.  processing functions. If it is selected with the right mouse button, a
  33.  requester appears to select different image processing options. The area
  34.  on which image processing is to be applied can be delimited by dragging
  35.  the mouse (i.e. moving it while the left button is held down).
  36.  
  37.  Personal Paint is not "dangerous to use: most program requesters can be
  38.  displayed to see what they do, and terminated by selecting the Cancel
  39.  gadget; painting and image processing operations can be undone; warning
  40.  messages are displayed whenever there is a risk of overwriting or losing
  41.  some data.
  42.  
  43.  The tools which appear on the bar on the left of the screen can be
  44.  selected either with the left or the right mouse button, in their upper
  45.  or lower half. The right mouse button usually activates an options
  46.  requester associated with the tool. The upper and lower halves of the
  47.  tool may be selected to specify the unfilled or filled mode. You should
  48.  try out all tools in all possible combinations (left/right mouse button
  49.  and upper/lower half).
  50.  
  51.  Clicking with the right mouse button on the little number which appears
  52.  among the predefined brushes pops up a little menu with numbers from one
  53.  to nine. This means that up to nine different brushes can be used. The
  54.  current number indicates which custom brush you want to use.
  55.  
  56.  Most painting and image processing functions make use of the current
  57.  foreground and background color. These can be selected from the palette
  58.  which is displayed on the screen with the left and right mouse button,
  59.  respectively.
  60.  
  61.  Again, left and right mouse buttons have different effects when painting.
  62.  The right mouse button usually clears the selected (or underlying) area
  63.  using the background color.
  64.  
  65.  If quality is preferred over speed, the Floyd-Steinberg Color Remapping
  66.  and Color Average Resize should be activated and saved with the default
  67.  settings ("Settings" menu). If available RAM is very limited, you should
  68.  close the Workbench screen, and use only one environment and a single
  69.  brush. Screen modes with higher resolution and more colors require
  70.  proportionally more memory. If you don't know whether you have a lot of
  71.  usable RAM, or just very little, check with the Memory Information
  72.  command.
  73.  
  74.  Before painting on a blank screen, you may want to choose an appropriate
  75.  screen mode, page size and color palette ("Project/Image Format" menu).
  76.  On Original and Enhanced Chip Set Amigas, low resolution screens (320 by
  77.  200) in 32 or 64 colors are normally preferred for paintings with plenty
  78.  of colors. Higher resolutions limit the maximum number of colors, and are
  79.  therefore used with palettes of up to 16 different colors. Advanced
  80.  Graphics Architecture Amigas can work in up to 256 colors in most video
  81.  modes. When you select a new screen mode, don't forget to set the page
  82.  size (usually the same as the screen size) and the maximum number of
  83.  colors. Setting the highest possible values is not necessarily the best
  84.  choice, especially if there is not much RAM to work with. Objects smaller
  85.  than the smallest possible screen can be saved as anim-brushes.
  86.  
  87.  Personal Paint offers many original features which you might not expect
  88.  to find in similar programs. You can start impressing image processing
  89.  operations with a click on a tool, use the GIF file standard to read
  90.  thousands of 256-color images which are available, grab screens from
  91.  other Amiga programs, output to PostScript devices adding interesting
  92.  effects, merge different images into one (and creating one common color
  93.  palette), reduce the number of colors used by an image and much, much
  94.  more.
  95.  
  96.  If you want to see some examples of what you can do by combining
  97.  different operations, just go on and read the following sections.
  98.  
  99.  
  100.  Gradient Fill
  101.  
  102.  This example will show you what you can do with Personal Paint's special
  103.  fill and line modes.
  104.  
  105.  Choose a high resolution screen format with 16 colors (Project/Image
  106.  Format menu). A standard PAL or NTSC high resolution mode will do. If you
  107.  are not annoyed by interlace mode, select an interlaced screen.
  108.  
  109.  Display the color palette requester (Color/Edit Palette menu). The
  110.  requester also appears if you press <p>. Click on the first color in the
  111.  row of colors displayed at the top of the requester. Make that color
  112.  white by setting the R, G and B sliders appropriately (all sliders to the
  113.  right). If white looks too bright on your monitor, move the Brightness
  114.  knob to 80% to obtain a light gray. Then go to the second color and make
  115.  it black (the three sliders should be moved to the extreme left). Now
  116.  pick the next color (color position 02) and make it dark green (set H, S
  117.  and B respectively to 137, 100 and 46). Jump to position 08 and set that
  118.  color to light green (HSB = 82, 61, 86). Set color 09 to dark red (HSB =
  119.  0, 100, 66) and color 15 to pink (HSB = 11, 33, 100).
  120.  
  121.  Now you need to create the intermediate shades of green and red. To do
  122.  so, click on dark green, select Create HSV Range (the gadget with a II
  123.  over the range symbol), and click on light green. Now there should be a
  124.  smooth transition of colors between dark green and light green. Repeat
  125.  the process with red: select dark red, click on the Create Range gadget
  126.  and then select pink. If everything goes well, you can select Proceed, to
  127.  confirm the changes. Otherwise, repeat the above steps.
  128.  
  129.  In the color palette below the tool bar, click on black with the left
  130.  mouse button, and on white (or gray) with the right button. This will set
  131.  the foreground and background colors. Clear the image, if it is not
  132.  already empty, by selecting the Clear tool.
  133.  
  134.  Select the smallest predefined brush (the first). You may also do this by
  135.  typing <.> on the keyboard. Select the Empty Rectangle tool by clicking
  136.  on the top half of the rectangle image with the left mouse button. Draw a
  137.  large box, almost as large as the screen, by clicking and dragging with
  138.  the left mouse button. If the box does not look like you would like it
  139.  to, select the Undo tool, or type <u>.
  140.  
  141.  Pick the largest of the round brushes. Make it even larger by typing <+>
  142.  half a dozen times (use the plus sign which appears on the alphanumerical
  143.  keyboard, not the one on the numeric keypad).
  144.  
  145.  Select the continuous freehand drawing mode by clicking on the top half
  146.  of the tool with the left mouse button. Move the pointer inside the box
  147.  which you have created, click on the left mouse button and move the mouse
  148.  to draw something like a snail, a worm, or an S-like shape. Release the
  149.  mouse button when you have finished. Again, select Undo if you would like
  150.  to try again.
  151.  
  152.  Now click on the fill tool using the right mouse button. The Area
  153.  Settings requester should appear. Select the Manual Gradient Mode by
  154.  clicking on the Gradient Mode symbol until the four boxes crossed by an
  155.  arrow appear. Click on the Gradient Type gadget until the Shape symbol is
  156.  selected (a circle containing four arrows should appear). If you see the
  157.  correct symbols, select Proceed. The Gradient Fill symbol should appear
  158.  on the title bar.
  159.  
  160.  Now select pink as the foreground color, and dark red as the background
  161.  color (by respectively selecting the colors in the palette with the left
  162.  and right mouse button). Move the mouse pointer over any point which is
  163.  inside the box, but not over the curved shape. The mouse pointer should
  164.  be displayed using the Fill symbol. Click on the left mouse button. This
  165.  will take a few seconds. The background of the box should be filled with
  166.  smooth shades of red. Now select light green (it should be just over red
  167.  in the palette) and dark green as the foreground and background color.
  168.  Fill the black shape inside the box as you have just done for the
  169.  background. You should now see something like a green snail lying on a
  170.  red cushion. If you wish, you can obtain different variations by
  171.  exchanging red and green, or light and dark colors.
  172.  
  173.  If you want to experiment more applying the same techniques, you can
  174.  select the Filled Freehand tool (use the left mouse button to click on
  175.  the lower half of the gadget) and draw a heart-like shape. The heart will
  176.  be softly shaded using the colors from the current foreground to the
  177.  background color.
  178.  
  179.  Did you expect that you could create similar effects with Personal Paint
  180.  and just a few mouse clicks? If you are looking for more surprises, just
  181.  go on reading.
  182.  
  183.  
  184.  Line Pattern
  185.  
  186.  For this short example you can use the same screen, image format and
  187.  colors of the previous example. You will see how you can draw lines
  188.  composed of color cycles from a sequence of palette colors.
  189.  
  190.  Select white (or gray) as the current background color (right mouse
  191.  button) and clear the image with the Clear tool.
  192.  
  193.  Click on the Filled Rectangle tool (lower half of the rectangle image)
  194.  using the right mouse button. This will display the Area Settings
  195.  requester. Click on the Gradient Type gadget until the Horizontal
  196.  Gradient symbol appears (a two-headed arrow completely contained in a
  197.  circle). While the requester is displayed, you can choose some colors in
  198.  the screen color palette. Select dark red as the foreground color (use
  199.  the left mouse button) and pink as the background color (right mouse
  200.  button). You will see how the Gradient box changes to show a smooth
  201.  transition of red. Select Proceed.
  202.  
  203.  Paint a long, horizontal filled rectangle by dragging the mouse on the
  204.  screen (left mouse button held down). It should automatically be filled
  205.  with the colors from dark red to pink. Now click once on the Define Brush
  206.  tool. Select a horizontal stripe inside the rectangle which contains all
  207.  gradations of red. Then click on the Line tool using the right mouse
  208.  button. The Line Settings requester will appear. Cycle the Line Type
  209.  gadget until Colored Pattern appears. Then click on the gadget
  210.  corresponding to the first brush (assuming that this is the brush you
  211.  have already defined). This will create a line pattern which uses the
  212.  colors that appear on the topmost line of the brush. Click on Proceed to
  213.  remove the requester. The Line Pattern symbol will appear on the title
  214.  bar.
  215.  
  216.  Now select the large, round, predefined brush, and start drawing some
  217.  lines or freehand curves of different lengths. You will notice that the
  218.  path is made up of all the colors in the range which was originally
  219.  enclosed by the brush. You may try several variations by redefining the
  220.  color palette with different color spreads. By selecting the shaded
  221.  brush, applying Brush/Rotate/Horizontal Flip and pasting the new brush to
  222.  the left or right of the original pattern, you can create "ping-pong"
  223.  color transitions (with colors softly changing back and forth).
  224.  
  225.  
  226.  Combining Text Editing, Image Processing and Stencils
  227.  
  228.  You could start this session using the same screen mode, page size and
  229.  color palette selected for the previous examples.
  230.  
  231.  Select light green as the current background color (right mouse button)
  232.  and clear the image with the Clear tool.
  233.  
  234.  Click on the Text tool with the right mouse button. This will display the
  235.  Font Selection requester. If you have many fonts, it will take the
  236.  operating system a few seconds to scan through all of them. Personal
  237.  Paint will then show you all the fonts which are available. Click on
  238.  "Topaz 9 oetf". This is a standard ROM-font which should be available on
  239.  all systems. (If you have a better font, use it.) In the Font Attributes
  240.  text gadget, change the 9 to 20, append an 's' after the other characters
  241.  and press <Return>. If you have version 2.0, or a higher version of the
  242.  operating system, you should now see an enlarged version of the Topaz
  243.  font. Click on Proceed.
  244.  
  245.  Select black as the foreground color, move the cursor to the center of
  246.  the screen and type a short sentence. Now use the right mouse button to
  247.  select the Image Processing tool. Double-click on Blur Low. The requester
  248.  should disappear.
  249.  
  250.  By dragging the mouse while the left mouse button is held down, select an
  251.  area of the screen which is sufficiently large to contain the text you
  252.  have just typed, with a margin of several dozen pixels. Line by line, you
  253.  should see the text being "blurred". This effect is useful if you want to
  254.  anti-alias a text typed with a font which has visible "steps", or to
  255.  smoothly merge a text with the background.
  256.  
  257.  Now let's try again, but blurring the pixels which make up the text
  258.  without affecting the background. Select Undo to cancel the effects of
  259.  applying image processing to the text. Select the Edit Stencil requester.
  260.  Put a checkmark on the light green box by clicking on it. Select Proceed.
  261.  The Stencil Mode symbol should appear on the title bar. Select Blur High
  262.  after clicking on the Image Processing tool with the right mouse button.
  263.  
  264.  Apply image processing again by redefining the area to be processed. The
  265.  background should remain intact, while blurring should change the outer
  266.  parts of the characters, making them look a bit like oxidized copper.
  267.  
  268.  Try another text color: select dark red and click on the Filled Rectangle
  269.  tool (left mouse button, lower half of the rectangle). Since the
  270.  background color is still "protected" by the stencil, you can change the
  271.  text by painting a rectangle over it. Try blurring again. Then disable
  272.  the stencil by typing <`> on the upper left of the keyboard: the stencil
  273.  symbol should disappear from the title bar.
  274.  
  275.  Now you can repeat all of the above combinations using different text and
  276.  background colors, changing some colors in the palette, applying
  277.  different effects (like Blur High, Randomize High, etc.), activating the
  278.  F-S Error Diffusion option in the Filter Selection requester, etc. You
  279.  can use the stencil to protect the text color instead of the background
  280.  color (in this way, you could quickly recolor the background without
  281.  modifying the text).
  282.  
  283.  
  284.  Color Reduction and Remapping
  285.  
  286.  This example will show you the differences between qualitative and
  287.  quantitative color reduction, and different types of color remapping. The
  288.  "Parrot.gif" and "Clown.gif" picture files are used in this section.
  289.  These files are part of a collection of pictures which is available for
  290.  use with Personal Paint. Check on the disks which come with the program.
  291.  If you don't have these files, you may use other pictures having the same
  292.  format, or contact your Amiga dealer. The single images are also
  293.  available from public domain sources.
  294.  
  295.  If your Amiga employs the Original or Enhanced Chip Set, you do not need
  296.  to set the screen size before loading the images used for these examples.
  297.  If you have an Advanced Graphics Architecture Amiga, or any other Display
  298.  Database-compatible device capable of displaying 256 colors, you must set
  299.  the screen and image format to 320 by 200 (LowRes HBrite, PAL or NTSC),
  300.  64 colors. If you are using a PAL screen, or any other screen having a
  301.  different size, remember to manually set the image size to the 320 by 200
  302.  image format. You should not set more than 64 colors, otherwise you won't
  303.  be able to appreciate Personal Paint's color reduction and remapping
  304.  applied to 256-color images.
  305.  
  306.  Make sure that Settings/Color Reduction is set to Qualitative and
  307.  Settings/Color Remapping is set to Simple.
  308.  
  309.  Select Project/Load Image and choose the file named "Parrot.gif". (On the
  310.  data disks which are designed for use with Personal Paint, picture files
  311.  are stored in the "Pictures" directory.) Double-click on the file name,
  312.  or select Proceed to load the image.
  313.  
  314.  A warning requester might appear, indicating that the selected image has
  315.  a format and number of colors different from the current environment
  316.  format. If you have been working with an AA (256-color) system, and have
  317.  manually set the screen format as explained before, select the lower
  318.  gadget to maintain the current format (the Stretch option should be
  319.  disabled). If you have an Original or Enhanced Chip Set Amiga, just click
  320.  on Proceed, leaving the default gadget selection unchanged. This will
  321.  activate the screen mode which most closely matches the format of the
  322.  selected image, i.e. Low Resolution HBrite.
  323.  
  324.  The progress requester keeps you informed about the current status of
  325.  loading and converting the image. The time it takes also depends on the
  326.  color remapping mode and the number of colors (if the screen can display
  327.  all image colors, there is no need to color-reduce and remap).
  328.  
  329.  The parrot image should appear on the screen. Select
  330.  Project/Environment/Copy to Other, followed by Project/Environment/Switch
  331.  (or press <j> on the keyboard). This will create a second environment,
  332.  identical to the first one. You will notice that you are in the second
  333.  environment from the "2:" which precedes the name of the picture on the
  334.  title bar.
  335.  
  336.  Now change the Settings/Color Reduction option and choose Quantitative.
  337.  To see the difference between the two modes, you can now load the same
  338.  image again, repeating the same selection on the warning requester. After
  339.  the usual progress indications, a second parrot will appear. Can you
  340.  notice the difference at first glance? Look at the tail, and press <j> to
  341.  switch from one environment to the other: the first parrot has a blue
  342.  tail, while the second parrot has a gray tail.
  343.  
  344.  Blue shades were used very little in that image, but were important to
  345.  render details like the tail. The qualitative color reduction method
  346.  respects these priorities. The quantitative method, on the other hand,
  347.  tends to preserve more shades of similar colors, as you can see if you
  348.  observe the branches of the trees.
  349.  
  350.  Now we'll do another experiment to understand the difference between
  351.  different methods of color remapping. Leave both images as they are.
  352.  Reset the Color Reduction to Qualitative. Start from any environment, and
  353.  load the "Clown.gif" picture. Reply to the program messages as you did
  354.  before.
  355.  
  356.  Now press <j> to go to the other environment. The parrot should still be
  357.  there. Select Floyd-Steinberg in the Settings/Color Remapping menu, and
  358.  load "Clown.gif". Now both environments contain the image of a clown.
  359.  Again, can you spot the difference? Look at the nose of the clown and
  360.  press <j> a few times. Floyd-Steinberg color remapping has created much
  361.  smoother color transitions, giving the illusion of a larger color palette
  362.  by carefully combining different colors.
  363.  
  364.  
  365.  Color Merge
  366.  
  367.  This example will require considerably more Chip RAM, and might not work
  368.  on 1 Mbyte systems. It will show you how to merge the color palettes of
  369.  different images into a common palette, so that different images can be
  370.  viewed, overlapped and freely mixed on the same screen.
  371.  
  372.  Four different images will be required. If you can spend more time on
  373.  this, select images which have different color palettes (both in the
  374.  number of color entries, and in the colors themselves), but were designed
  375.  for the same screen format. If all the source images have the same
  376.  format, you can create a simple poster without having to resize each
  377.  image in a different way. You should be able to create something like the
  378.  "PPaint.gif" sample file, where each image occupies a quarter of the
  379.  screen.
  380.  
  381.  If you have selected images with a particular format, then select the
  382.  same format for the screen and image (Project/Image Format menu). The
  383.  Color Merge process merges different palettes into a new palette which
  384.  has the same number of colors as the current environment. For this
  385.  reason, an image format with at least 16 colors should be set for higher
  386.  quality results.
  387.  
  388.  Now select brush number one. You can do this either by typing <1> on the
  389.  numerical keypad (not on the alphanumerical keyboard), or from the menu
  390.  which appears when you click with the right mouse button on the little
  391.  number among the predefined brushes, on the tool bar.
  392.  
  393.  Use Brush/Load to load the first of the four pictures. Then select the
  394.  following brush number and repeat the process until you have four images,
  395.  each associated to one brush. Don't be surprised if the brushes are not
  396.  displayed with their correct colors. This is caused by the fact that the
  397.  screen (i.e. the current environment) may probably use a different set of
  398.  colors from the brush. Also, don't worry if you are using Load Brush
  399.  instead of Load Image: you need to do this to be able to process
  400.  different images at the same time. If you wanted to merge only two
  401.  pictures, you could use Personal Paint's two image environments.
  402.  
  403.  Choose the Color/Merge menu item. In the requester, click on the items
  404.  which you want to merge. In this example, it should be sufficient to
  405.  click on the gadgets associated to the first four brushes. If the gadgets
  406.  are shadowed, you probably forgot to change the brush number before
  407.  loading a new brush. Select Proceed to see Color Merge in action.
  408.  
  409.  If you didn't select Current in the merge requester, you have to select
  410.  Color/Palette/From Brush to apply the brush palette to the current
  411.  environment. Now you can cycle through all of the brushes to resize them.
  412.  This time, as each brush is selected, it is also displayed properly on
  413.  the screen. If you notice that a brush is deformed, i.e. it is too tall,
  414.  or too wide, apply Halve Vertical or Halve Horizontal. Otherwise, if the
  415.  brush is simply too large, select Halve from the Brush/Resize menu.
  416.  
  417.  Now you have four brushes which are small enough to be manipulated and
  418.  combined on the screen. For most Amiga users with some graphics
  419.  experience who see four completely different pictures on the same screen,
  420.  it is a surprise to discover how few colors need be used. Paste the
  421.  brushes on the screen to create an image like "PPaint.gif", or
  422.  "ColorMerge.gif".
  423.  
  424.  You could apply some variations to the process described here. For
  425.  example, you could activate the Color Average Resize option in the
  426.  Settings menu. This would considerably slow down resizing operations, but
  427.  would also improve the quality of brush resizing. Alternatively, you
  428.  could set the Color Remapping option to Floyd-Steinberg. In that case,
  429.  however, you would have to first resize the images, and then execute the
  430.  color merge. Otherwise, resizing the brushes would alter the
  431.  Floyd-Steinberg patterns created by the color merge and remapping
  432.  process.
  433.  
  434.  If you want to save the image, use Project/Save Image. When choosing the
  435.  file format, keep in mind that GIF files generally occupy less space than
  436.  other formats, whereas IFF-ILBM is the standard which will allow you to
  437.  exchange data with most other Amiga software. If you like special effects
  438.  on your Workbench, you may want to use colored picture-icons.
  439.  
  440.  To conclude this example, click on <F9> to hide the tool bar with the
  441.  color palette. Then look at the screen: can you remember how many colors
  442.  you used?
  443.  
  444.  
  445.  File Formats
  446.  
  447.  Personal Paint and other Cloanto programs use external input/output
  448.  modules to read and save data in different file formats. I/O modules can
  449.  be added to extend the software without replacing the main program. The
  450.  modules are standard Amiga libraries, which can be stored either in LIBS:
  451.  or in the local directory (e.g. "PPaint:libs"). If libraries exist in
  452.  both places, the software determines which library is newer, and uses
  453.  it.
  454.  
  455.  Each library may support more than one file format. Some formats may be
  456.  available only as read formats or only as write formats. For example,
  457.  images can be written as C source code, but they cannot be read back from
  458.  that format (a C compiler would be able to process such a file). The
  459.  Plasma module instead, generates synthetic images, and is only an input
  460.  module.
  461.  
  462.  Some libraries have configuration options which can be set by the user
  463.  from the file requester, or through the ARexx programming interface. By
  464.  default, it is not necessary to change the file format options, which are
  465.  preset in a way which guarantees compatibility, efficiency and processing
  466.  speed. When a file is saved in the same format in which it was loaded,
  467.  the settings originally associated to the file format are preserved
  468.  (unless they are explicitly changed). For example, if an IFF-ILBM image
  469.  without screen mode information is loaded and edited, it is then saved
  470.  back without this information.
  471.  
  472.  ILBM, PNG, GIF and other file formats usually employ 24-bit color
  473.  palettes, but not all non-AGA Amiga screen modes have a 24-bit color
  474.  resolution. Personal Paint always encodes palette colors using 24-bits
  475.  ("true color") for higher quality, but colors may be rounded to the
  476.  closest Amiga color step (12 bits, i.e. 4 bits for each Red, Green and
  477.  Blue component, on original Amiga architectures) when they are copied
  478.  into the environment palette. In order not to lose color resolution when
  479.  loading an image and saving it again, you can set the read-only settings
  480.  REDBITS, GREENBITS and BLUEBITS to 8. This does not apply to brushes,
  481.  which can be loaded and saved without changes to the palette granularity
  482.  by Personal Paint, regardless of the current video mode color
  483.  resolution.
  484.  
  485.  It should be kept in mind that Personal Paint is a palette-based program
  486.  which can perform professional conversions from true color (24/48-bit)
  487.  data to palette images, but it cannot save back using true color formats
  488.  such as JPEG (or true-color-mode PNG, PCX, IFF or others), the only
  489.  exception being true color (8-bit) grayscale images which can be edited
  490.  as palette-based images (up to 256 levels of gray), and saved as true
  491.  color images in formats such as PNG.
  492.  
  493.  When loading a file, the "AUTO" file format option indicates that the
  494.  file format should be detected automatically. If more than one loader
  495.  exists for a specific file format (e.g. DataTypes, SuperView and/or a
  496.  specific Cloanto I/O module), it may be useful to manually select the
  497.  preferred loader. Otherwise, the first loader from the top of the list
  498.  which recognizes the format is used.
  499.  
  500.  The following sections list various file formats supported by the I/O
  501.  modules which can be used with Personal Paint. Options are explained only
  502.  once, even when they are common to several formats. The section "Personal
  503.  Paint for Authors" of this tutorial chapter explains some practical
  504.  applications of the various formats.
  505.  
  506.  Note: this version of Personal Paint does not contain all of the I/O
  507.  modules mentioned (formats like GIF, Photo CD, JPEG and BMP are missing
  508.  in part due to licensing restrictions, while formats like TIM are
  509.  supported only from Personal Paint version 7.1). 
  510.  
  511.  
  512.  IFF ILBM 
  513.  
  514.  IFF ILBM (from "Interchange File Format - InterLeaved BitMap") is the
  515.  Amiga standard format. It is very fast, and compatible with most Amiga
  516.  applications, although it does not compress as well as PNG and GIF.
  517.  
  518.  This format supports stencils and transparencies. If a stencil (color
  519.  mask) is active, it is saved with the image. The ILBM format is also
  520.  capable of storing 24-bit data and Amiga HAM and HAM8 images, which
  521.  Personal Paint can load. Comments (Author, Copyright, Annotation) are
  522.  also supported.
  523.  
  524.  Options include Compression (activates or disables compression) and
  525.  Screen Format (specifies whether to save screen format information with
  526.  the image).
  527.  
  528.  
  529.  PNG 
  530.  
  531.  The PNG (Portable Network Graphics) format is the newest and the most
  532.  advanced of all the formats supported by Personal Paint. Personal Paint
  533.  was the first paint program worldwide to support PNG. PNG offers the best
  534.  compression of all file formats, and manages both palette-based and true
  535.  color (up to 48-bit) images. PNG can store transparency information, as
  536.  well as comments.
  537.  
  538.  The Automatic option determines whether the library should check the
  539.  palette and determine if it is a grayscale palette, and only in that case
  540.  automatically save the image in a special grayscale type of PNG, which is
  541.  more efficient. An image is considered grayscale if the palette contains
  542.  2, 4, 16 or 256 entries being a perfect set of black-to-white shades.
  543.  
  544.  The Progressive Display option means that the image is stored in a way as
  545.  to support progressive display during load. This increases the file size,
  546.  but allows for some types of mostly online (Internet) viewers to allow
  547.  for a preview which is raw at the beginning, and progressively more and
  548.  more detailed.
  549.  
  550.  The compression level can be set from minimum (one) to maximum (nine).
  551.  The maximum compression level takes longer to compress, but it does not
  552.  affect decompression.
  553.  
  554.  
  555.  GIF 
  556.  
  557.  GIF (Graphics Interchange Format, officially pronounced "jif") is a very
  558.  well-established graphics format, especially on the Internet. Its
  559.  popularity is only menaced by patent issues which make it necessary to
  560.  pay a royalty to Unisys Corporation for each piece of GIF software sold.
  561.  For this reason, the GIF input/output library is not included with all
  562.  versions of Personal Paint, especially those manufactured by third
  563.  parties under license from Cloanto.
  564.  
  565.  GIF compresses much better than ILBM, and almost as well as PNG. It
  566.  cannot store true color data.
  567.  
  568.  The GIF library includes an option to select between the GIF87a and the
  569.  GIF89a specification. GIF89a supports comments, transparency information,
  570.  and animation. The Frame load option allows the user (or Rexx client) to
  571.  specify a specific animation frame to be loaded.
  572.  
  573.  
  574.  BMP 
  575.  
  576.  The library included with Personal Paint supports both the Windows and
  577.  the OS/2 version of the BMP (BitMaP) format.
  578.  
  579.  This format supports palette-based and 24-bit true color images. The
  580.  Windows variant supports two types of compression (RLE4 and RLE8, used
  581.  for images having more than 16 colors), but not all BMP loaders support
  582.  compression.
  583.  
  584.  
  585.  PCX 
  586.  
  587.  PCX (ZSoft Paintbrush File Format) is the format originally preferred by
  588.  simple MS-DOS paint and scanner programs. This format supports
  589.  palette-based and 24-bit data.
  590.  
  591.  Internally, different PCX subformats are used in order to achieve best
  592.  compatibility with existing PC systems. Two-color images are saved as CGA
  593.  monochrome files. In this format, a few image loaders may assume color 0
  594.  to be black, and color 1 to be white. In such a case, the two colors
  595.  should be exchanged in Personal Paint's palette before remapping and
  596.  saving the picture. Images with 4 or 16 colors are stored as EGA/VGA
  597.  16-color files (adding extra empty planes if necessary). Images with more
  598.  colors are stored as 256-color VGA files.
  599.  
  600.  The Compatibility option, required to exchange data with some programs,
  601.  forces the library to only use a rigid set of PC palette sizes, and add
  602.  unused colors if the image has an intermediate number of color entries.
  603.  
  604.  
  605.  IFF ACBM 
  606.  
  607.  ACBM is an acronym of "Amiga Contiguous BitMap format". This is an old
  608.  IFF format similar to ILBM, only that it is not compressed.
  609.  
  610.  
  611.  Encrypted 
  612.  
  613.  The Encrypted format is useful to protect "private" pictures. Encrypted
  614.  images are modified using a key. If the picture is not loaded using the
  615.  same encryption key, it will be unreadable. The file name is not
  616.  encrypted.
  617.  
  618.  The encrypted format should not be used, imported or exported where doing
  619.  so would be illegal.
  620.  
  621.  
  622.  PBM 
  623.  
  624.  The PBM (Portable BitMap, for black and white images) format and the
  625.  closely-related PGM (Portable GrayMap, for grayscales) and PPM (Portable
  626.  PixMap, 24-bit images) are part of a popular (especially some time ago),
  627.  mainly freely disributable, set of conversion and image processing tools.
  628.  Personal Paint's PBM library supports all three formats, each of them
  629.  both in the binary and in the ASCII variant (Binary option). Data stored
  630.  in these formats is not compressed.
  631.  
  632.  If the Automatic option is disabled, images are always stored in the PPM
  633.  (24-bit) format. Otherwise, the software automatically detects the best
  634.  format, based on the image format.
  635.  
  636.  
  637.  Raw 
  638.  
  639.  This format was designed for Amiga game developers and other programmers
  640.  asking for a quick and informal way to incorporate bitmaps into their
  641.  code.
  642.  
  643.  The Colors option can be set to 0 to save only the image data, to 1 to
  644.  save the palette data followed by the image data, or to 2 to save the
  645.  image data followd by the palette data. The image data is written
  646.  bitplane after bitplane (each data-row is WORD-padded). The palette data
  647.  consists of three bytes (RGB) for each palette entry.
  648.  
  649.  
  650.  TIM 
  651.  
  652.  This is the graphics file format of choice on the PlayStation system
  653.  because it closely matches the display hardware architecture, and
  654.  therefore is very efficient. The following TIM modes are supported by
  655.  Personal Paint: 4-bit CLUT, 8-bit CLUT, 16-bit direct and 24-bit direct.
  656.  
  657.  TIM files can be found on PlayStation CD-ROMs, which apart from the copy
  658.  protection information can be read by Amigas with a CD-ROM drive and an
  659.  ISO 9660 filing system. This means that TIM graphics on PlayStation CDs
  660.  can be loaded directly into Personal Paint.
  661.  
  662.  Of course, Personal Paint can also save different variants of TIM files,
  663.  which is very important for PlayStation games developers. The following
  664.  (more technical) notes are dedicated to PlayStation artists and
  665.  developers.
  666.  
  667.  When saving, the width of 4-bit images is rounded up to the next multiple
  668.  of 4, and the width of 8-bit images is rounded up to the next even
  669.  number.
  670.  
  671.  Unlike "Save Brush", which stores transparency information as set by the
  672.  transparency settings, "Save Image" does not save any transparency
  673.  information. This means that images stored with this command will be
  674.  "opaque", unless the TRANSPBLACK option is set.
  675.  
  676.  The TIM format currently supports 16/256-color images ("CLUT" mode) and
  677.  true color images (16/24-bit "direct" mode). In either format except for
  678.  24-bit (which stays 8-8-8), the color resolution is limited to 5 bits per
  679.  color component (5-5-5, i.e. 15-bit palettes, allowing for 32768 colors
  680.  or 32 levels of gray). To accurately create images in this color
  681.  environment it is recommended to set the REDBITS, GREENBITS and BLUEBITS
  682.  program settings to 5.
  683.  
  684.  Several options determine how images are written by Personal Paint.
  685.  
  686.  FORMAT: 0 = 2..16-color images are saved as 4-bit files and 32..256-color
  687.  images are saved as 8-bit files, 1 = Images are saved as 16-bit "direct"
  688.  files, 2 = Images are saved as 24-bit "direct" files.
  689.  
  690.  IMAGEX: Image X coordinate in VRAM
  691.  
  692.  IMAGEY: Image Y coordinate in VRAM
  693.  
  694.  PALETTEX: Palette X coordinate in VRAM (only for CLUT files)
  695.  
  696.  PALETTEY: Palette Y coordinate in VRAM (only for CLUT files)
  697.  
  698.  TRANSLUCENT: 0 = All colors (except black and the transparent color, if
  699.  any) are marked as translucent, 1 = All colors are considered solid
  700.  colors (only for CLUT files).
  701.  
  702.  TRANSPBLACK: 0 = Black is encoded as transparent, 1 = The brush
  703.  transparent color is encoded as transparent (only for CLUT files).
  704.  
  705.  
  706.  C Source Code (Save Only) 
  707.  
  708.  The C source code format is suitable for embedding image data into Amiga
  709.  C graphics programming environments.
  710.  
  711.  C source code files also contain a filled-in Amiga DrawImage()-compatible
  712.  Image structure and arrays with color palette data in formats suitable
  713.  for both LoadRGB4() and LoadRGB32(). Unused bitplanes are not output as
  714.  data, but marked in the appropriate PlanePick and PlaneOnOff fields. The
  715.  image array data type is defined as "UWORD chip". The "chip" keyword is
  716.  used by some compilers to make sure that the data is loaded in Amiga Chip
  717.  RAM at run time. It may be necessary to remove it, or modify it into a
  718.  different name (e.g. "__chip").
  719.  
  720.  
  721.  ASCII (Save Only) 
  722.  
  723.  This is a simple "text art" format.
  724.  
  725.  The Width and Height parameters, in the range 0..32767 indicate the
  726.  number of characters per row and column, respectively. If one of the two
  727.  values is 0, then it is adjusted to a size in proportion to the other
  728.  value, in consideration of the image aspect. If both are set to 0, then
  729.  the width is adjusted to 80.
  730.  
  731.  The Gray Shades string contains a variable number of characters used to
  732.  render the different levels of gray, from black to white (e.g.
  733.  "#@08Oo+=-:. "). The more characters there are in the string, the more
  734.  shades will be used to render the image.
  735.  
  736.  
  737.  JPEG Format (Load Only) 
  738.  
  739.  The JPEG (Joint Photographic Experts Group) is a sophisticated,
  740.  highly-compressible (and lossy, meaning that the original image is not
  741.  preserved) format to render true color images. It cannot store
  742.  palette-based images, and it is not suitable to render sharp contrasts.
  743.  It is ideal for "real life" images.
  744.  
  745.  The Quality load option activates a fast and not very accurate algorithm
  746.  (DCT/IDCT) if set to 0, or a higher-quality (but slower) "fancy
  747.  upsampling" procedure if set to 1. If the Gray Shades option is enabled,
  748.  the image is converted to a grayscale picture during the load. The Format
  749.  setting determines whether the image is to be loaded in its original
  750.  format (Format = 0), or reduced to 1/2, 1/4 or 1/8 (Format values of 1, 2
  751.  and 3, respectively) of its original width and height.
  752.  
  753.  
  754.  Photo CD (Load Only) 
  755.  
  756.  This is a Photo CD implementation licensed from Kodak. Personal Paint can
  757.  load 24-bit images, as well as rotated images.
  758.  
  759.  Please note that on a standard Photo CD CD-ROM, pictures are usually
  760.  stored in a directory named "Photo_cd/Images". The files have names like
  761.  "Img0001.pcd", "Img0002.pcd", etc.
  762.  
  763.  Format values in the range 1..5 respectively select the following image
  764.  formats:
  765.  
  766.     1:  192 × 128  (BASE16)
  767.     2:  384 × 256  (BASE4)
  768.     3:  768 × 512  (BASE)
  769.     4: 1536 × 1024 (4BASE)
  770.     5: 3072 × 2048 (16BASE)
  771.  
  772.  Setting Gray Shades to 1 forces a grayscale conversion.
  773.  
  774.  The Photo CD implementation includes two loaders. In addition to the
  775.  normal image loader, a "Photo CD Overview" loader (short: "PCD-OV") is
  776.  used to load the thumbnail images showing miniatures of the photographs.
  777.  On standard Photo CDs, these are stored in the "Photo_cd/Overview.pcd"
  778.  file.
  779.  
  780.  A Format value of 1 or 2 respectively selects the 96 × 96 (1) or the
  781.  192 × 192 (2) thumbnail format. The Columns value (range: 1..32767) sets
  782.  the numer of images per row.
  783.  
  784.  
  785.  DataTypes (Load Only) 
  786.  
  787.  This I/O module acts as an interface to load any type of pictures
  788.  supported by the Amiga DataTypes. Both palette-based and true color
  789.  images are supported (picture.datatype version 43).
  790.  
  791.  
  792.  Plasma (Load Only) 
  793.  
  794.  Plasma is not strictly a loader, but rather a generator of fractal
  795.  images. This library uses a variety of parameters.
  796.  
  797.  Width: width of the image to be created; if 0, the current image (or
  798.  brush) format (width and height) is used.
  799.  
  800.  Height: height of the image to be created; if 0, the image or brush
  801.  format is used.
  802.  
  803.  Colors: number of colors of the image to be created (4..256 colors, i.e.
  804.  depth 2..8); if both Width and Height are set to 0, then the image (or
  805.  brush) depth is used.
  806.  
  807.  Graininess: image "graininess" in 1/10000 (range 5000..500000, default
  808.  20000).
  809.  
  810.  Random Seed: random seed; if negative, totally random image palettes are
  811.  generated.
  812.  
  813.  Gray Shades: color (0) or grayscale (1) palette; gray images can be
  814.  useful as alpha channel information.
  815.  
  816.  
  817.  Scanner (Load Only) 
  818.  
  819.  A scanner I/O library is not normally supplied with Personal Paint, but
  820.  it is rather provided with products such as ScanQuix. It is mentioned
  821.  here mainly to draw attention to the fact that the I/O modules allow for
  822.  capabilities which go beyond simple file I/O.
  823.  
  824.  
  825.  Personal Paint for Authors
  826.  
  827.  Personal Paint offers a unique range of features designed for authors of
  828.  artwork to be distributed on computer files. In this section, we would
  829.  like to share with you some of the experience collected by leading
  830.  artists. We also explain some of the settings we at Cloanto prefer in our
  831.  own configurations.
  832.  
  833.  An image or an animation created with public distribution in mind
  834.  requires some considerations which are normally not relevant when a file
  835.  is used only on the author's computer.
  836.  
  837.  As the public grows wider, compatibility becomes an issue: the image or
  838.  the animation may have been created using a screen mode different than
  839.  what a viewer may have available. Some (especially older) picture and
  840.  animation players had limitations and bugs, and it could be interesting
  841.  to have access to a range of options designed to prevent potential
  842.  difficulties before they become a problem for end users.
  843.  
  844.  Associating information such as author, copyright, and other comments to
  845.  files is usually appreciated both by authors and by the public (as well
  846.  as by possible publishers). Also, there should be no difficulties or
  847.  formalities in distributing the icons created by the art application, or
  848.  even replacing these with new default icons. Both the icons and the image
  849.  file should be product-neutral (no hidden advertising texts inside the
  850.  file). After more than six major versions, Personal Paint offers
  851.  experienced answers to these and many more requirements.
  852.  
  853.  Most computing platforms use display modes made of square pixels (i.e. an
  854.  X/Y ratio of 1, as on the Macintosh, or on the PC's VGA) as a standard.
  855.  This means that the pixels are exactly as tall as they are wide. To be
  856.  round, a circle drawn on such a screen would be as wide (in pixels) as it
  857.  is tall. Not so on the Amiga. The original non-interlaced Amiga modes had
  858.  a ratio close to 0.5 (so-called "tall-pixels"). A "round" circle could be
  859.  10 pixels on the X-axis and 5 pixels on the Y-axis. Most artists prefer
  860.  to work with square pixels. Yet even here there is no exact match on the
  861.  Amiga. PAL and NTSC screen modes, for example, have pixels of slightly
  862.  different ratios. Before it draws a circle, Personal Paint queries the
  863.  Amiga Display Database to obtain information on the ratio. For example,
  864.  the Display Database could tell Personal Paint that a "round" circle must
  865.  be 10 pixels wide and... 9 pixels tall. This is not what most artists
  866.  want. Rather than working with similar approximations, at Cloanto we
  867.  prefer to activate the Square Pixels option. This ensures that the
  868.  resulting images appear correctly when viewed using 1:1 pixels,
  869.  regardless of the screen mode in which the image was created.
  870.  
  871.  Normally, when storing an image in formats such as IFF-ILBM, information
  872.  about the current screen mode is also saved. When the Amiga was first
  873.  released, associating a screen mode to an image allowed simple viewer
  874.  applications to quickly open a screen of the same type as the one used by
  875.  the author. At that time, options were limited: screens could be either
  876.  low resolution or high resolution, interlaced or non-interlaced. These
  877.  were common to all Amigas. Minor difficulties would result from images
  878.  crossing the oceans separating PAL from NTSC video modes. Today, there
  879.  are not only different generations of Amiga display hardware, but even
  880.  third-party graphics boards. Even users of identical Amiga computers may
  881.  have installed different Monitor files on their systems. Furthermore,
  882.  applications became more intelligent: Personal Paint, for example, excels
  883.  in automatically picking the best available screen mode to display an
  884.  image.
  885.  
  886.  Over the years, associating default screen modes to pictures has become
  887.  more dangerous (the default may not be available, or viewable, on the
  888.  user's machine) and less necessary (software is more intelligent). At
  889.  Cloanto, we now prefer to store all images without associating a default
  890.  screen mode to the file. To switch this option, open the Options window
  891.  in the Save Image requester and clear the Screen Format setting. File
  892.  formats which cannot save screen mode information (e.g. PBM) do not have
  893.  this option.
  894.  
  895.  Animations require some additional attention. In accordance with the
  896.  different Amiga ANIM specifications (standards for animation file
  897.  formats), a default screen mode must be specified in the file. Personal
  898.  Paint and the most used Amiga animation players are capable of overriding
  899.  this information when loading an animation, and can automatically select
  900.  an appropriate screen mode just as Personal Paint does for images. This
  901.  is necessary, for example, when an animation's default mode is not
  902.  supported on the computer where the animation is to be played.
  903.  Nevertheless, when an animation is saved, the current screen mode is
  904.  always stored with the animation. At Cloanto, we have decided to
  905.  associate "DblPAL" screen modes to the animations we create and
  906.  distribute. These screen modes are supported by all AGA machines, and can
  907.  be displayed on VGA monitors not supporting 15 kHz modes. Furthermore,
  908.  the pixel X/Y ratio of PAL is closer than NTSC to 1, which is preferred
  909.  by most artists. The AGA chip-set is very common among the more active
  910.  Amiga users. Yet even if the end user's machine does not support DblPAL,
  911.  the animation can be displayed in other screen modes (the screen mode
  912.  information is only a hint required by the ANIM standard, not an
  913.  imperative for applications).
  914.  
  915.  Users of original and ECS Amiga chip-sets, as well as users of some
  916.  display cards such as the Picasso II should consider another issue: color
  917.  resolution. AGA allows users and applications to define and set colors
  918.  using 8 bits per color component (red, green and blue). This is 24 bits
  919.  (or 256 gray-levels, or more than 16 million different
  920.  color-combinations). Older Amigas only support 4 bits per component (i.e.
  921.  16 gray-levels, or 4096 colors). The Picasso II uses 6 bits per component
  922.  (64 gray levels, or 262 144 colors). This means that on some systems
  923.  colors cannot be defined with the precision possible on AGA (e.g. on the
  924.  Amiga 1200 and 4000), for example. Users of Personal Paint can quickly
  925.  check the color resolution of a given screen mode by displaying the
  926.  Palette requester and setting any color-slider to the maximum. The
  927.  numerical value indicates the precision of the display (e.g. a maximum
  928.  level of 15, 63 or 255 would indicate that the hardware supports 16, 64
  929.  or 256 levels for that color component).
  930.  
  931.  When a palette is loaded on a system with a lower color resolution, a
  932.  majority of colors is likely to "snap" to coarser levels. If the image is
  933.  then saved again, a loss of data may occur. As an artist, you may want to
  934.  make sure that the colors you see on your system will be loaded and
  935.  represented the same way by an older Amiga. Or, even if you do not own a
  936.  system capable of handling 8 bits per color component, you may need to
  937.  edit images in that resolution without losing precision. Personal Paint
  938.  offers a solution to all these requirements, by allowing the user to
  939.  manually set the color precision (number of bits per color component).
  940.  Even if this is different (higher or lower) than what is supported by the
  941.  system, Personal Paint can use a custom value for all processing,
  942.  overriding the Amiga defaults. When the program settings REDBITS,
  943.  GREENBITS and BLUEBITS are set to 0, Personal Paint uses the maximum
  944.  color resolution supported by the video device currently used. This is
  945.  the program's default. Other values, however, force Personal Paint to use
  946.  specific numbers of bits per color component. For example, setting all
  947.  three values to 8 allows for precise editing of AGA-resolution palettes
  948.  even on ECS or Picasso II systems.
  949.  
  950.  At Cloanto, where we work with different Amiga computers and graphic
  951.  boards, we manually set REDBITS, GREENBITS and BLUEBITS to 8 in our own
  952.  startup files. If you have an AGA computer and you only work in AGA
  953.  screen modes, you should not need to set these values yourself (by
  954.  default this is taken care of by Personal Paint), unless you want to
  955.  emulate a coarser color resolution.
  956.  
  957.  When we save an image, at Cloanto we use the IFF-ILBM format if the image
  958.  is mainly for Amiga distribution. The options we normally set are:
  959.  compression active, no screen format information. IFF-ILBM is the most
  960.  supported Amiga image file format, and also offers excellent loading and
  961.  saving times (e.g. viewers are faster), but its compression is not as
  962.  good as in other formats (i.e. the files are longer). When space is
  963.  really tight and excellent compression is a priority, we use PNG
  964.  (options: compression level 9, no progressive display, automatic mode
  965.  enabled). Setting a PNG compression level higher than 6 slightly improves
  966.  compression, but considerably slows down the compression procedure. PNG
  967.  is also our format of choice when the images are to be read by other
  968.  computers. We used to prefer GIF for cross-platform distribution, but
  969.  GIF's popularity was suffocated at the end of 1994, after Unisys
  970.  Corporation began demanding royalties for software reading and writing
  971.  GIF (and TIFF/LZW) files. When we write images to be used on an Amiga
  972.  CD-ROM, we sometimes prefer another format: uncompressed IFF-ILBM (no
  973.  compression, no screen format information). This can generate quite long
  974.  files, but on a CD-ROM space is usually not a problem. Due to the minimum
  975.  software overhead, uncompressed IFF-ILBM files can be loaded considerably
  976.  faster than other formats, especially on slower machines.
  977.  
  978.  When we write animations, at Cloanto we usually store them in ANIM-5
  979.  format. This is the most supported standard for Amiga animation files. It
  980.  also offers good compression. ANIM-7 files can be processed faster,
  981.  although they are not compressed as well and are not as widely supported
  982.  as ANIM-5. We use ANIM-7 for 256-color animations, and sometimes to store
  983.  all types of animations on CD-ROM, when we know that an ANIM-7 viewer is
  984.  available (e.g. Personal Paint). Very rarely, when a disk is really
  985.  packed, we store animations in the ANIM-5+7 format. When this format is
  986.  used, Personal Paint decides whether to use ANIM-5 or ANIM-7 on a
  987.  frame-by-frame basis, depending on which format yields the best
  988.  compression. This adheres to the ANIM specifications, but requires that
  989.  the software loading the animation can handle both ANIM-5 and ANIM-7. We
  990.  never use ANIM-8. It is neither as popular nor (in general) as good as
  991.  ANIM-7.
  992.  
  993.  Quite often, at Cloanto we use Personal Paint to optimize old animations
  994.  (among others, using the Optimize Frames command) before saving them
  995.  again. This alone can halve the size of certain animation files. Some
  996.  older and not very popular animation viewers do not support
  997.  frame-by-frame timing. In this case, the Optimize Frames command cannot
  998.  be used. These same programs usually also do not support more than one
  999.  color palette per animation (see the introduction to chapter 6). Personal
  1000.  Paint marks these palettes with three dots under the associated frame in
  1001.  the storyboard. At Cloanto, we use frame-by-frame timing and multiple
  1002.  palettes without concerns, since neither of the limitations described
  1003.  here is an issue with the most recent and the most used Amiga animation
  1004.  viewers.
  1005.  
  1006.  A few other options can affect the animation format. Before the animation
  1007.  is saved, we make sure that the current screen mode is the one that we
  1008.  want to associate to the animation (see explanation in this same
  1009.  section).
  1010.  
  1011.  Some older programs have a bug which does not allow them to handle
  1012.  certain types of properly-written ANIM files. DPaint (up to release V) is
  1013.  one of these programs. When compatibility with these applications is
  1014.  important, we disable the Full ANIM Optimization option.
  1015.  
  1016.  As an author or publisher of an image or animation, you may want to
  1017.  fill-in the Author, Copyright and Annotation texts, which are supported
  1018.  by most file formats. You could put your name as the Author, and
  1019.  something like "Copyright © [Year of first publication] [Your name] -
  1020.  Freely Distributable" in the Copyright text. The Annotation could include
  1021.  a postal or E-mail address. Personal Paint allows for this information to
  1022.  be easily edited at any time. Empty fields are not saved, and do not
  1023.  occupy any space in the file.
  1024.  
  1025.  On the Amiga, Workbench icons are usually associated to files. Personal
  1026.  Paints can save images and animations using the default icons stored in
  1027.  the "PPaint:PPaint_Icons" drawer. These icons also determine the Default
  1028.  Tool, which is the program which will be loaded when the file is
  1029.  double-clicked on. If you like the icons which come with Personal Paint
  1030.  (they are freely distributable), you can leave them as they are, or
  1031.  perhaps you may want to change the default tool, for example by putting
  1032.  "VT" instead of "PPaint:PPView". This can be set with the Workbench
  1033.  Information command. PPView is a short program which uses Personal Paint
  1034.  as a viewer (it loads Personal Paint, if it is not already loaded).
  1035.  Please be careful not to Snapshot (Workbench command) the icons inside
  1036.  "PPaint:PPaint_Icons" to a fixed position. When dropping a new default
  1037.  icon inside the drawer, select the Workbench UnSnapshot command.
  1038.  
  1039.  At Cloanto, we usually set the Icons option to Original when we only want
  1040.  to change the file format of a picture or animation. This guarantees that
  1041.  the existing icon image will not be affected.
  1042.  
  1043.  
  1044.  Personal Paint for Internet Publishing
  1045.  
  1046.  Note: many of the features described in this section require version 7.1
  1047.  of Personal Paint. 
  1048.  
  1049.  As more and more organizations and individuals publish their work on the
  1050.  World Wide Web, it is becoming more important to stand out with carefully
  1051.  thought out web pages. Graphics play an important part in this. Poorly
  1052.  implemented pages annoy users with images having wrong or missing
  1053.  transparency information, lack of progressive display, and long
  1054.  transmission times for 256-color images where 16 or fewer colors could
  1055.  achieve the same results.
  1056.  
  1057.  In addition to supporting Internet still image formats, Personal Paint
  1058.  includes tools to create highly-optimized GIF animations, and to edit
  1059.  "image map databases". GIF animations became increasingly popular after
  1060.  1995, when several browsers began supporting this format. Image maps make
  1061.  it possible to specify regions on an image, and to associate them to
  1062.  actions that are executed when the user clicks on a region. The
  1063.  "LoadAnimGif", "SaveAnimGif" and "WebMap" Rexx macros contain additional
  1064.  documentation which can be displayed by selecting "About..." in the Macro
  1065.  Selection requester.
  1066.  
  1067.  
  1068.  Common File Formats 
  1069.  
  1070.  Personal Paint is an ideal tool for the creation of palette-based images
  1071.  to be included in HTML documents (the standard for web pages). Two file
  1072.  formats are recommended for this purpose: GIF and PNG. Both formats
  1073.  support progressive display and transparency, the appropriate use of
  1074.  which can make a difference between a good page and a poor page. We
  1075.  recommend the use of both features.
  1076.  
  1077.  GIF exists in two variants: GIF87a and GIF89a. PNG and GIF89a support
  1078.  transparency. GIF87a does not. The GIF format is designed in a way that
  1079.  programs supporting only the "87a" format should be able to read "89a"
  1080.  images, skipping the transparency information. Personal Paint's most
  1081.  recent GIF input/output libraries ("personal_gif_io.library" from version
  1082.  3.2) allow for the GIF version to be specified in the Options window of
  1083.  the Save Brush requester. Library versions from 5.1 also support reading
  1084.  and writing of GIF animations (with appropriate client programs, such as
  1085.  Personal Paint 7).
  1086.  
  1087.  PNG is technically better than GIF, but it has been officially introduced
  1088.  to the list of WWW-supported formats only in late 1996. It is likely that
  1089.  PNG will slowly replace GIF, which is being suffocated by patent
  1090.  problems. At Cloanto we began using GIF for our WWW images, but we expect
  1091.  to replace it with PNG as more browsers support it.
  1092.  
  1093.  
  1094.  Progressive Display 
  1095.  
  1096.  Progressive (also called "interlaced") display is a feature which is
  1097.  useful whenever it takes a long time (seconds, if not minutes) to load an
  1098.  image. Images stored without this option can be displayed only line by
  1099.  line, from the top to the bottom. It is very difficult to have an idea of
  1100.  the contents of such an image at the beginning of the transmission. If
  1101.  instead the progressive display option was enabled when the original
  1102.  image was saved, the entire image can be viewed in a coarse resolution at
  1103.  the beginning of the transmission, and during the transmission it becomes
  1104.  progressively more detailed.
  1105.  
  1106.  All versions of GIF and PNG support progressive display, although PNG
  1107.  uses a more appealing method. Personal Paint has a Progressive Display
  1108.  setting in the Options window of the Save Image and Save Brush
  1109.  requesters. Images saved using this option occupy slightly more space,
  1110.  but can be displayed progressively during the load. This feature is
  1111.  widely used on the Internet, and it is compatible with all WWW browsers.
  1112.  
  1113.  
  1114.  
  1115.  Transparency 
  1116.  
  1117.  Transparency is a feature which allows part of the image to be defined as
  1118.  transparent. This is useful, for example, when non-rectangular images
  1119.  have to be displayed over a pattern. But even if the background of a
  1120.  non-rectangular shape has the same color of the page background, we
  1121.  recommend setting that color as transparent, because some browsers may
  1122.  remap the image background to a slightly different color than the page
  1123.  background color. Some WWW browsers do not support the HTML commands
  1124.  which set the page background color, so an image background which was
  1125.  intended to be the same as the page, could appear to be different.
  1126.  Transparency can prevent this. Active use of transparency helps
  1127.  maintaining the quality of the page even when these browsers are used.
  1128.  
  1129.  To preserve the best possible page quality even with older browsers we
  1130.  recommend to use transparency and at the same time to also make sure that
  1131.  the transparent color is the same as the page background color. This
  1132.  helps with those few browsers that do not support transparency.
  1133.  
  1134.  Personal Paint saves transparency information only when saving brushes
  1135.  (Save Brush command, rather than Save Image). The transparent color is
  1136.  defined when the brush is defined. If the Transparency option in the
  1137.  Settings menu is set to None, then no transparency is associated to the
  1138.  brush. If instead it is set to Color, then the background color during
  1139.  the brush definition is used as transparent. Other types of transparency,
  1140.  such as transparency shapes which are not associated to a single color,
  1141.  which can be defined and stored in the IFF-ILBM format, are poorly
  1142.  supported on the Internet, and not at all supported by the GIF format. So
  1143.  the only way to mark a region as transparent is to reserve a color for
  1144.  that part of the picture, and selecting it as the background color before
  1145.  the brush is defined.
  1146.  
  1147.  While for still images we can safely recommend to use transparency for
  1148.  the background color even when this is not strictly required, for
  1149.  animations the choice can be more difficult, because transparency may
  1150.  have an impact on the size of the animation file, and also because some
  1151.  older browsers do not properly support certain types of transparent GIF
  1152.  animations. Therefore, for animations we recommend to set Transparency to
  1153.  "None" unless a transparency effect is required. The Frequently Asked
  1154.  Questions section of Personal Paint contains additional notes on possible
  1155.  problems which may be experienced when transparency is applied to GIF
  1156.  animations, and how these can be solved.
  1157.  
  1158.  
  1159.  Color Palettes 
  1160.  
  1161.  It should be considered that even 100% Amiga-oriented web sites are very
  1162.  often (if not preferably, as some statistics indicate) viewed using a PC
  1163.  browser. When they are not operating on a true color desktop (or
  1164.  "Workbench", in Amiga terminology), the majority of PC Internet browsers
  1165.  remap and dither all images using a 216-color "isopalette", which is a
  1166.  palette in which the entries are equally distributed in the color space.
  1167.  This allows for fast and efficient dithering, and is in general preferred
  1168.  to other methods involving dynamic color allocation and change based on
  1169.  the different images.
  1170.  
  1171.  Internet browsers by Microsoft, Netscape and others share a common
  1172.  216-color isopalette. The remaining colors out of 256 change from browser
  1173.  to browser. The "Colors" drawer in the Personal Paint program directory
  1174.  contains this color palette (as well as the subset of grays) ready for
  1175.  use with Personal Paint. Whenever this choice is easily practicable, we
  1176.  recommend to consider using these colors for palette-based graphics,
  1177.  especially for large surfaces of the same color, which would otherwise
  1178.  risk to be dithered by the browser.
  1179.  
  1180.  
  1181.  Other Recommendations 
  1182.  
  1183.  Newer browsers support a feature called "Low Resolution Preview"
  1184.  ("LOWSRC" attribute in the "IMG" HTML element), which makes it possible
  1185.  to specify a very compact image, usually in low resolution and with very
  1186.  few colors, which is displayed before the higher-resolution image is
  1187.  loaded and displayed in the same place. If this feature is used, it is
  1188.  important to consider that the low resolution image can use progressive
  1189.  display, but the high resolution image should not, because it would
  1190.  immediately cover the preview image.
  1191.  
  1192.  It is important to keep in mind some practical Internet traffic,
  1193.  bandwidth and cost restraints, which suggest that the size of the image
  1194.  files should be as small as possible. If you are planning to publish a
  1195.  256-color image, try to color-reduce it to 16, or even fewer colors. Very
  1196.  often, the difference in quality can hardly be noticed, but a 16-color
  1197.  image is transmitted twice as fast as one in 256 colors (and costs less,
  1198.  if traffic or time are charged). Personal Paint's most professional
  1199.  quantization mode is activated by setting the Dithering option to
  1200.  Floyd-Steinberg, with the Best Quality option active. It should also be
  1201.  noted, however, that Floyd-Steinberg dithering creates patterns which can
  1202.  slightly reduce the compression rate.
  1203.  
  1204.  
  1205.  
  1206.  Copyright © 1992-1998 Cloanto
  1207.